<?php

namespace App\Model\Cgs;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class Placeholder extends Model
{
    use SoftDeletes;
    protected $table = 'placeholder';
    protected $connection = 'cgs';
    protected $guarded = ['id','placeholder_name','placeholder_code','created_at'];
    protected $appends = ['placeholder_type_name'];
    public function getPlaceholderTypeNameAttribute(){
        return getEnumName('placeHolderType',$this->placeholder_type);
    }
}
